package com.warren.log.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {
    @GetMapping("/query")
    public List query(){
        List list = new ArrayList();
        Map map = new HashMap();
        map.put("AAA","AAA");
        list.add(map);
        log.info("list");
        return list;
    }
}
